@extends('admin.index.layout')

@section('title',$title)

@section('content')

<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">查看用户</h3>
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <table border="1" align="center" cellpadding="0" cellspacing="5" width="100%">
                            <tr align="center">
                                <td>商品序号</td>
                                <td>商品名称</td>
                                <td>商品图片</td>
                                <td>商品版本</td>
                                <td>商品颜色</td>
                                <td>商品属性操作</td>
                                <td>操作</td>
                            </tr>
                            @foreach($res as $v)
                                @foreach($row as $k)
                                    <tr align="center">
                                        <td>{{ $v -> gid   }}</td>
                                        <td>{{ $v -> name  }}</td>
                                        <td><img src="/uploads/yhtx/{{$v -> pic}}" width="50" alt=""></td>
                                        <td>{{ $k -> value }}</td>
                                        <td>{{ $k -> color }}</td>
                                        <td>
                                            <a href="{{ asset('/admin/goods/VersionInsert?id=') }}{{$v -> gid}}">版本,颜色修改</a> 
                                        </td>
                                        <td><a href="{{ asset('/admin/goods/VersionDelete?id=') }}{{$v -> gid}}">删除</a></td>
                                    </tr>  
                                @endforeach
                            @endforeach
                        </table>
                    </div><!-- /.box -->

        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

@endsection
